.PHONY: clean all

EXES = btchecktime btchecktime_orig
LIBS = $(shell root-config --libs)
CCFLAGS = -g -I$(shell root-config --incdir)

all: $(EXES) 

#% :: %.o
#	g++ -g -o $@ $(shell root-config --libs) $^

% :: %.cpp
	g++ $(CCFLAGS) -o $@ $< $(LIBS)


install: $(EXES)
	/usr/bin/install $^ $(BELLEMY)/beamtest/bin


clean:
	rm *.o $(EXES)



#SOURCES = $(foreach exe, $(EXES), $(exe).cpp)
